package dfbz.字节输出流;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class demo {
    public static void main(String[] args) {
        try {
            FileOutputStream fos = new FileOutputStream(new File("E:\\东方标准\\JAVASE阶段\\JAVASE-CODE\\Day18\\i.txt"));
            byte[] bytes={12,12,97,98,99};
            fos.write(bytes,0,5);
            byte[] b="乘舟侧畔千帆过".getBytes();
            fos.write(b);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
